package org.itcast.travel.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author WangCong
 * 2024/12/20 11:47
 */
@Data
@Component
//prefix = "aliyun.oss" 对应yml文件中的
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliOssConfigProperties {
    /*
        bucketName  --> 对应yml中 bucket-name 自动映射
     */

    private String endpoint;
    private String bucketName;

}
